package HLLib.ui;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLLib.base.HLList;
import HLLib.io.HLFile;

public class HLUIFrameImageList extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_UI, HLClassManager_H.LIB_CLASS_UI_UIFrameImageList);
    }

    HLList itemList;

    public int GetType() {
        return 0;
    }

    void Load(HLFile file, HLUISeed owner) {
        int controlCount = file.ReadInt16();
        itemList = new HLList();
        itemList.Resize(0, controlCount);
        for (int i = 0; i < controlCount; i++) {
            file.ReadInt8();
            byte packageIndex = file.ReadInt8();
            short imageIndex = file.ReadInt16();
            itemList.items[i] = owner.ownerUISeedManager.imageManager.GetImageEX(packageIndex, imageIndex, false);
        }
    }

    HLUIFrameImageList Clone(HLUISeed owner) {
        return this;
    }
}
